import request from '@/utils/request'

// 查询每周食谱列表
export function listRecipes(query) {
  return request({
    url: '/process/weeklyRecipes/list',
    method: 'get',
    params: query
  })
}

// 查询每周食谱详细
export function getRecipes(id) {
  return request({
    url: '/process/weeklyRecipes/' + id,
    method: 'get'
  })
}

// 新增每周食谱
export function addRecipes(data) {
  return request({
    url: '/process/weeklyRecipes',
    method: 'post',
    data: data
  })
}

// 修改每周食谱
export function updateRecipes(data) {
  return request({
    url: '/process/weeklyRecipes',
    method: 'put',
    data: data
  })
}

// 删除每周食谱
export function delRecipes(id) {
  return request({
    url: '/process/weeklyRecipes/' + id,
    method: 'delete'
  })
}
